
<?$this->load->view('admin/tools/admin-header')?>
<?$this->load->view('admin/tools/admin-menu')?>

<div class="wrap">
	<a href=""><div id="icon-index" class="icon32"><br /></div></a><br>
<h3><a>Manage ->Kritik Saran</a></h3>
<?if(!(empty($mode))){echo"<div id='message' class='updated fade'><p>$pesan</p></div>";}?>
<div id="dashboard-widgets-wrap">
<div style="float:right">

</div>
<form id="posts-filter" action="<?=site_url('administrator/multi_hapus_pengumuman');?>" method="POST">

<div class="tablenav">



<div class="alignleft">
	<table width="250" align="center" border="1">
		<tr style="background:">
			<td width="250" valign="middle" align="center">
			<font face="verdana" size="2" color="#FF0000">
				<div style="float:left">
				<?// $jumlah = $this->tbl_pengumuman->hitung();?>
				<center>Banyak Data : <b><?=$jumlah?></b></center>
				<center><a><?echo $this->pagination->create_links();?></a></center>
			</div></font>
			</td>
		</tr>
		</table>
</div>
</div>

<br class="clear" />
<table width="100%" border="3">
	<thead>
	<tr style="background:#9b9b9b;color:white;">
		<th scope="col" class="check-column">&nbsp;&nbsp;&nbsp;&nbsp;<br>&nbsp;</th>
		<th scope="col" width="18%">Nama</th>
		<th scope="col" width="40%">Topik</th>
		<th scope="col" width="15%">Email</th>
		<th scope="col" width="17%">Tanggal</th>
		<th scope="col" width="10%">aksi</th>
	</tr>
	</thead>
	<tbody>
	<?
	$no=1;
	foreach ($query as $row)
		{
			$id			= $row->id;
			$tanggal	= $row->tanggal;
			$nama		= $row->nama;
			$email	 	= $row->email;
			$topik  	= $row->judul;
			$new	  	= $row->new;
		
				if($new==1){
					$warna = "yellow";
					
				}else{
					$warna = "white";
				}
		?>
	<tr style="background:<?=$warna;?>"valign="top">

		<th scope="row" class="check-column">&nbsp;&nbsp;&nbsp;&nbsp;<br>&nbsp;</th>
		<td width="18%"><?=$nama;?></td>
		<td width="40%" align="justify"><?=$topik;?></td>
		<td width="15%"  align="left"><?=$email;?></td>	
		<td width="17%" align="center"><?=$tanggal;?></td>
		<td width="10%" align="center"><a href="<?=site_url('administrator/view_kritiksaran/'.$id)?>" title="View Detail"><img src="<?=base_url()?>css/icon/view.png"></a>&nbsp;|&nbsp;<a href="<?=site_url('administrator/delete_kritiksaran/'.$id)?>" title="Delete"><img src="<?=base_url()?>css/icon/delete.png"></a></td>
		</tr>
		<?$no++;}?>
	</tbody>
</table>
</form>
</div>
</div><!-- wrap -->
<div class="clear"></div></div><!-- wpbody-content -->
<div class="clear"></div></div><!-- wpbody -->
<div class="clear"></div></div><!-- wpcontent -->
</div><!-- wpwrap -->

<!--admin-footer-->
<?$this->load->view('admin/tools/admin-footer');?>
<!--admin-footer-->
